home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
pas_all.zip
/
TI328.ASC
< prev
next >
Wrap
Text File
|
1992-08-12
|
3KB
|
133 lines
PRODUCT : TURBO PASCAL DATABASE TOOLBOX NUMBER : 328
VERSION : 1.21
OS : All
DATE : July 28, 1986 PAGE : 1/2
TITLE : TBDEMO UPDATE
The following modifications enable TBDEMO to add and delete
records correctly. Note that these code changes will update your
version of the Turbo Pascal Database Toolbox to version 1.21A.
Please update the version numbers at the top of each toolbox modu
1. Make a backup copy of the file TBDEMO.PAS.
2. Load the file TBDEMO.PAS into the Turbo Pascal editor.
3. In the procedure AddCustomer, change the following:
.
.
.
Response : char;
begin
repeat
InputInformation(Customer);
FindKey(CodeIndx,RecordNumber,Customer.CustCode);
If not OK then
.
.
.
Change to:
.
.
.
Response : char;
TempCode : string[15]; { Ver. 1.21A Addition }
begin
repeat
InputInformation(Customer);
TempCode := Customer.CustCode; { Ver. 1.21A Addition }
FindKey(CodeIndx,RecordNumber,TempCode);
{ Ver. 1.21A Modification }
If not OK then
.
.
.
4. In the procedure DeleteCustomer, change the following:
.
.
.
Write(' Enter code of customer to be deleted: ');
Readln(CustomerCode);
FindKey(CodeIndx,RecordNumber,Customer.CustCode);
PRODUCT : TURBO PASCAL DATABASE TOOLBOX NUMBER : 328
VERSION : 1.21
OS : All
DATE : July 28, 1986 PAGE : 2/2
TITLE : TBDEMO UPDATE
if OK then
begin
DeleteKey(CodeIndx,RecordNumber,Customer.CustCode);
DeleteRec(CustFile,RecordNumber);
.
.
.
Change to:
.
.
.
Write(' Enter code of customer to be deleted: ');
Readln(CustomerCode);
FindKey(CodeIndx,RecordNumber,CustomerCode);
{ Ver. 1.21A Modification }
if OK then
begin
DeleteKey(CodeIndx,RecordNumber,CustomerCode);
{ Ver. 1.21A Modification }
DeleteRec(CustFile,RecordNumber);
.
.
.
5. At the top of the file update the modification date
6. Save the file.
DISCLAIMER: You have the right to use this technical information
subject to the terms of the No-Nonsense License Statement that
you received with the Borland product to which this information
pertains.